<?php
/**
 * Created by PhpStorm.
 * User: 57124
 * Date: 2022/2/21
 * Time: 15:01
 */

namespace app\model;


use think\Model;

class User extends Model{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'zs_user';
    // 设置字段信息
    protected $schema = [
        'id'          => 'int',
        'name'        => 'string',
        'nickname'    => 'string',
        'mobile'      => 'string',
        'password'    => 'string',
        'updated'     => 'datetime',
        'created'     => 'datetime',
    ];
}